/**
 *  @file QuotedPrintable.h
 */
#ifndef _QUOTEDPRINTABLE_H_
#define _QUOTEDPRINTABLE_H_

#include "../common/commontypes.h"

namespace cppflib
{

namespace convert
{

/**
 *  Functions to encode and decode data in quotedprintable format.
 */
namespace qp
{

_DLLAPI int GetEncodeBufferNeed(const u8_t * srcBuf, const int srcLen, const bool isMsgHdr);
_DLLAPI int GetDecodeBufferNeed(const u8_t * srcBuf, const int srcLen, const bool isMsgHdr);

_DLLAPI int Encode(const u8_t * srcBuf, const int srcLen, u8_t ** outBuf, int * outLen, const bool isMsgHdr = false);
_DLLAPI int Decode(const u8_t * srcBuf, const int srcLen, u8_t ** outBuf, int * outLen, const bool isMsgHdr = false);

}  // end of qp

}  // end of convert

}  // end of cppflib


#endif
